Skip to content

Add tests for ansible and system manager modules #1746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: update-nixpkgs
Choose a base branch
from

Conversation

jfroche
Copy link
Collaborator

@jfroche jfroche commented Aug 11, 2025

We are slowly moving ansible code to nix system manager modules.
To speed up the migration, we want to test the ansible code without building the whole AMI and have a fast feedback loop.
We also want to quickly test our changes on system manager modules.

The tests are running docker images with ubuntu using testinfra.

@jfroche jfroche changed the base branch from develop to update-nixpkgs August 11, 2025 12:58
@jfroche jfroche changed the base branch from update-nixpkgs to develop August 11, 2025 12:59
This complements the existing AMI tests in testinfra by providing
a faster feedback loops for Ansible development without requiring a full
VM.

Also as it is based on Docker, it can be run locally (e.g. macOS) or in CI.

Note that this approach is not intended to replace the AMI tests, but
rather to provide a more efficient way to test Ansible tasks during
development.

Docker is used outside of the Nix sandbox for the moment.

You can run the tests using `nix run -L .\#ansible-test`
And use docker to run tests
Required to fix issue with python3Packages.psycopg
Move ubuntu docker image to its own package.
Create one test for all system modules.
@jfroche jfroche force-pushed the feat/ansible-testing branch from 551892e to e5e1b82 Compare August 11, 2025 16:43
@jfroche jfroche changed the base branch from develop to update-nixpkgs August 11, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant